package cn.cvs.pojo;

/**
 * AuctionUser entity.
 */

public class AuctionUser implements java.io.Serializable {

	private static final long serialVersionUID = -8556340660780631392L;

	// Fields
	private Long userId;
	private String userName;
	private String userPassword;
	private String userCardNo;
	private String userTel;
	private String userAddress;
	private String userPostNumber;
	private Boolean userIsAdmin;
	private String userQuestion;
	private String userAnswer;
	// 扩展属性
	//private List<AuctionRecord> auctionRecords = new ArrayList<>();

	// Constructors

	/** default constructor */
	public AuctionUser() {
	}

	/** minimal constructor */
	public AuctionUser(String userName, String userPassword) {
		this.userName = userName;
		this.userPassword = userPassword;
	}

	/** full constructor */
	public AuctionUser(String userName, String userPassword, String userCardNo,
                       String userTel, String userAddress, String userPostNumber,
                       Boolean userIsAdmin, String userQuestion, String userAnswer
                     //,  List<AuctionRecord> auctionRecords
	) {
		this.userName = userName;
		this.userPassword = userPassword;
		this.userCardNo = userCardNo;
		this.userTel = userTel;
		this.userAddress = userAddress;
		this.userPostNumber = userPostNumber;
		this.userIsAdmin = userIsAdmin;
		this.userQuestion = userQuestion;
		this.userAnswer = userAnswer;
		//this.auctionRecords = auctionRecords;
	}

	public AuctionUser(String userName, String userPassword, Boolean userIsAdmin) {
		this.userName = userName;
		this.userPassword = userPassword;
		this.userIsAdmin = userIsAdmin;
	}

	// Property accessors

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserCardNo() {
		return this.userCardNo;
	}

	public void setUserCardNo(String userCardNo) {
		this.userCardNo = userCardNo;
	}

	public String getUserTel() {
		return this.userTel;
	}

	public void setUserTel(String userTel) {
		this.userTel = userTel;
	}

	public String getUserAddress() {
		return this.userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getUserPostNumber() {
		return this.userPostNumber;
	}

	public void setUserPostNumber(String userPostNumber) {
		this.userPostNumber = userPostNumber;
	}

	public Boolean getUserIsAdmin() {
		return this.userIsAdmin;
	}

	public void setUserIsAdmin(Boolean userIsAdmin) {
		this.userIsAdmin = userIsAdmin;
	}

	public String getUserQuestion() {
		return this.userQuestion;
	}

	public void setUserQuestion(String userQuestion) {
		this.userQuestion = userQuestion;
	}

	public String getUserAnswer() {
		return this.userAnswer;
	}

	public void setUserAnswer(String userAnswer) {
		this.userAnswer = userAnswer;
	}

	//public List<AuctionRecord> getAuctionRecords() {
	//	return this.auctionRecords;
	//}

	//public void setAuctionRecords(List<AuctionRecord> auctionRecords) {
	//	this.auctionRecords = auctionRecords;
	//}

	@Override
	public String toString() {
		return "AuctionUser{" +
				"userId=" + userId +
				", userName='" + userName + '\'' +
				", userPassword='" + userPassword + '\'' +
				", userCardNo='" + userCardNo + '\'' +
				", userTel='" + userTel + '\'' +
				", userAddress='" + userAddress + '\'' +
				", userPostNumber='" + userPostNumber + '\'' +
				", userIsAdmin=" + userIsAdmin +
				", userQuestion='" + userQuestion + '\'' +
				", userAnswer='" + userAnswer + '\'' +
				//", auctionRecords=" + auctionRecords +
				'}';
	}
}